package kontlin.zoufeng.com.kotlin

import android.os.Bundle
import android.os.PersistableBundle
import android.support.v7.app.AppCompatActivity
import android.util.Log

class MaintkActivity : AppCompatActivity(){
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        var a = "" ;
        a = 222.toString();
    }



    /**
     * 该方法是一种数据持久化的Activity
     *用法和介绍 https://www.cnblogs.com/lovelyYakir/p/7112401.html
     */
//    override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {
//        super.onCreate(savedInstanceState, persistentState)
//        setContentView(R.layout.activity_main)
//    }
}
